#include <iostream>
using namespace std;
class A
{
    virtual void fun1()
    {
        cout << "A" << endl;
    }
    int a;
};

class B :virtual public A
{
    virtual void fun1()
    {
        cout << "B" << endl;
    }
};
class C :virtual public A
{
    virtual void fun1()
    {
        cout << "C" << endl;
    }
};

int main()
{
    A a;
    B b;
    C c;
    return 0;
}

